// pages/putForward/putForward.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    account_balance: '',
    frozen_blance: '',
    withdraw_rule:{}
  },

  onShow: function () {
    this.getUserInfo();
  },

  //账户余额
  getUserInfo() {
    var that = this;
    app.ajax({
      url: 'Partner/User/getPartnerInfo',
      data: {},
      success: function (res) {
        if (res.data.code == 200) {
          that.setData({
            account_balance: res.data.data.account_balance,
            frozen_blance: res.data.data.frozen_blance,
            withdraw_rule: res.data.data.withdraw_rule
          })

        }
      },

    })
  }
})